﻿ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8">
<title>{$System_namex}</title>
<script type=text/javascript src="__PUBLIC__/Js/jquery-1.11.3.min.js"></script>
<script type=text/javascript src="__PUBLIC__/Js/nav.js"></script>
<link href="__PUBLIC__/Css/index.css" rel="stylesheet" type="text/css">
<link href="__PUBLIC__/Css/menu.css" rel="stylesheet" type="text/css">
<script language="javascript">
function turnHeight(iframe)
{
    var frm = document.getElementById(iframe);
	frm.height = 800;
    var subWeb = document.frames ? document.frames[iframe].document : frm.contentDocument;
    if(frm != null && subWeb != null)
    {
	if (subWeb.body.scrollHeight<800){
	frm.height = 800;
	}else{
	frm.height = subWeb.body.scrollHeight + 10;
	}
	}
}
</script>
<script type="text/javascript">
function reinitIframe(){
	var iframe = document.getElementById("main");
	try{
		var bHeight = iframe.contentWindow.document.body.scrollHeight;
		var dHeight = iframe.contentWindow.document.documentElement.scrollHeight;
		var height = Math.max(bHeight, dHeight);
		iframe.height =  height;
	}catch (ex){}
}
</script>
<script>
	/*jQuery("#frame_content").load(function (){
		var mainheight = jQuery(this).contents().find("body").height() + 0;
		jQuery(this).height(mainheight);
	});*/
</script>
<script type="text/javascript">
	jQuery(function(){
		jQuery('#aa').click(function(){
			jQuery('#aa').removeClass('current');
			jQuery(this).addClass('current');
		});
		
	});
	</script>
<script>
function menu(index){
	$(".nav li").removeClass("seleli");
	$(".nav li").eq(index).addClass("seleli");
	$("#sidebar ul").hide();
	$("#menu"+index).show();
}
</script>

<script>
function menucontent(Ful,lx){
	if(lx==1){
		document.getElementById("menu1").style.display="";
		document.getElementById("menu2").style.display="none";
		document.getElementById("menu3").style.display="none";
		document.getElementById("menu4").style.display="none";
		document.getElementById("menu5").style.display="none";
		document.getElementById("menu6").style.display="none";
		document.getElementById("menu7").style.display="none";
		}
	if(lx==2){
		document.getElementById("menu1").style.display="none";
		document.getElementById("menu2").style.display="";
		document.getElementById("menu3").style.display="none";
		document.getElementById("menu4").style.display="none";
		document.getElementById("menu5").style.display="none";
		document.getElementById("menu6").style.display="none";
		document.getElementById("menu7").style.display="none";
		}
	if(lx==3){
		document.getElementById("menu1").style.display="none";
		document.getElementById("menu2").style.display="none";
		document.getElementById("menu3").style.display="";
		document.getElementById("menu4").style.display="none";
		document.getElementById("menu5").style.display="none";
		document.getElementById("menu6").style.display="none";
		document.getElementById("menu7").style.display="none";
		}
	if(lx==4){
		document.getElementById("menu1").style.display="none";
		document.getElementById("menu2").style.display="none";
		document.getElementById("menu3").style.display="none";
		document.getElementById("menu4").style.display="";
		document.getElementById("menu5").style.display="none";
		document.getElementById("menu6").style.display="none";
		document.getElementById("menu7").style.display="none";
		}
	if(lx==5){
		document.getElementById("menu1").style.display="none";
		document.getElementById("menu2").style.display="none";
		document.getElementById("menu3").style.display="none";
		document.getElementById("menu4").style.display="none";
		document.getElementById("menu5").style.display="";
		document.getElementById("menu6").style.display="none";
		document.getElementById("menu7").style.display="none";
		}
	if(lx==6){
		document.getElementById("menu1").style.display="none";
		document.getElementById("menu2").style.display="none";
		document.getElementById("menu3").style.display="none";
		document.getElementById("menu4").style.display="none";
		document.getElementById("menu5").style.display="none";
		document.getElementById("menu6").style.display="";
		document.getElementById("menu7").style.display="none";
		}
	if(lx==7){
		document.getElementById("menu1").style.display="none";
		document.getElementById("menu2").style.display="none";
		document.getElementById("menu3").style.display="none";
		document.getElementById("menu4").style.display="none";
		document.getElementById("menu5").style.display="none";
		document.getElementById("menu6").style.display="none";
		document.getElementById("menu7").style.display="";
		}		
}
</script>
<!--日历JS开始-->
<script type="text/javascript" src="http://www.pengyaou.com/jquery-1.4.min.js"></script>
<script type="text/javascript">
		$(document).ready(function(e) {
			CalendarHandler.initialize();
		});

		var CalendarHandler = {
			currentYear: 0,
			currentMonth: 0,
			isRunning: false,
			showYearStart:2009,
			tag:0,
			initialize: function() {
				$calendarItem = this.CreateCalendar(0, 0, 0);
				$("#Container").append($calendarItem);

				$("#context").css("height", $("#CalendarMain").height() - 65 + "px");
				$("#center").css("height", $("#context").height() - 30 + "px");
				$("#selectYearDiv").css("height", $("#context").height() - 30 + "px").css("width", $("#context").width() + "px");
				$("#selectMonthDiv").css("height", $("#context").height() - 30 + "px").css("width", $("#context").width() + "px");
				$("#centerCalendarMain").css("height", $("#context").height() - 30 + "px").css("width", $("#context").width() + "px");

				$calendarItem.css("height", $("#context").height() - 30 + "px"); //.css("visibility","hidden");
				$("#Container").css("height", "0px").css("width", "0px").css("margin-left", $("#context").width() / 2 + "px").css("margin-top", ($("#context").height() - 30) / 2 + "px");
				$("#Container").animate({
					width: $("#context").width() + "px",
					height: ($("#context").height() - 30) * 2 + "px",
					marginLeft: "0px",
					marginTop: "0px"
				}, 300, function() {
					$calendarItem.css("visibility", "visible");
				});
				$(".dayItem").css("width", $("#context").width() + "px");
				var itemPaddintTop = $(".dayItem").height() / 6;
				$(".item").css({
					"width": $(".week").width() / 7 + "px",
					"line-height": itemPaddintTop + "px",
					"height": itemPaddintTop + "px"
				});
				$(".currentItem>a").css("margin-left", ($(".item").width() - 25) / 2 + "px").css("margin-top", ($(".item").height() - 25) / 2 + "px");
				$(".week>h3").css("width", $(".week").width() / 7 + "px");
				this.RunningTime();
			},
			CreateSelectYear: function(showYearStart) {
				CalendarHandler.showYearStart=showYearStart;
				$(".currentDay").show();
				$("#selectYearDiv").children().remove();
				var yearindex = 0;
				for (var i = showYearStart; i < showYearStart+12; i++) {
					yearindex++;
					if(i==showYearStart){
						$last=$("<div>往前</div>");
						$("#selectYearDiv").append($last);
						$last.click(function(){
							CalendarHandler.CreateSelectYear(CalendarHandler.showYearStart-10);
						});
						continue;
					}
					if(i==showYearStart+11){
						$next=$("<div>往后</div>");
						$("#selectYearDiv").append($next);
						$next.click(function(){
							CalendarHandler.CreateSelectYear(CalendarHandler.showYearStart+10);
						});
						continue;
					}
					
					if (i == this.currentYear) {
						$yearItem=$("<div class=\"currentYearSd\" id=\"" + yearindex + "\">" + i + "</div>")
					
					}
					else{
						 $yearItem=$("<div id=\"" + yearindex + "\">" + i + "</div>");
					}
					$("#selectYearDiv").append($yearItem);
					$yearItem.click(function(){
						$calendarItem=CalendarHandler.CreateCalendar(Number($(this).html()),1,1);
						$("#Container").append($calendarItem);
						CalendarHandler.CSS()
					    CalendarHandler.isRunning = true;
					    $($("#Container").find(".dayItem")[0]).animate({
						height: "0px"
					    }, 300, function() {
						$(this).remove();
						CalendarHandler.isRunning = false;
					    });
						$("#centerMain").animate({
						marginLeft: -$("#center").width() + "px"
					}, 500);
					});
					if (yearindex == 1 || yearindex == 5 || yearindex == 9) $("#selectYearDiv").find("#" + yearindex).css("border-left-color", "#fff");
					if (yearindex == 4 || yearindex == 8 || yearindex == 12) $("#selectYearDiv").find("#" + yearindex).css("border-right-color", "#fff");
					
				}
				$("#selectYearDiv>div").css("width", ($("#center").width() - 4) / 4 + "px").css("line-height", ($("#center").height() - 4) / 3 + "px");
				$("#centerMain").animate({
					marginLeft: "0px"
				}, 300);
			},
			CreateSelectMonth: function() {
				$(".currentDay").show();
				$("#selectMonthDiv").children().remove();
				for (var i = 1; i < 13; i++) {
					if (i == this.currentMonth) $monthItem=$("<div class=\"currentMontSd\" id=\"" + i + "\">" + i + "月</div>");
					else  $monthItem=$("<div id=\"" + i + "\">" + i + "月</div>");
					$("#selectMonthDiv").append($monthItem);
					$monthItem.click(function(){
						$calendarItem=CalendarHandler.CreateCalendar(CalendarHandler.currentYear,Number($(this).attr("id")),1);
						$("#Container").append($calendarItem);
						CalendarHandler.CSS()
					    CalendarHandler.isRunning = true;
					    $($("#Container").find(".dayItem")[0]).animate({
						height: "0px"
					    }, 300, function() {
						$(this).remove();
						CalendarHandler.isRunning = false;
					    });
						$("#centerMain").animate({
						marginLeft: -$("#center").width() + "px"
					}, 500);
					});
					if (i == 1 || i == 5 || i == 9) $("#selectMonthDiv").find("#" + i).css("border-left-color", "#fff");
					if (i == 4 || i == 8 || i == 12) $("#selectMonthDiv").find("#" + i).css("border-right-color", "#fff");
				}
				$("#selectMonthDiv>div").css("width", ($("#center").width() - 4) / 4 + "px").css("line-height", ($("#center").height() - 4) / 3 + "px");
				$("#centerMain").animate({
					marginLeft: -$("#center").width() * 2 + "px"
				}, 300);
			},
			IsRuiYear: function(aDate) {
				return (0 == aDate % 4 && (aDate % 100 != 0 || aDate % 400 == 0));
			},
			CalculateWeek: function(y, m, d) {
				var arr = "7123456".split("");
				with(document.all) {
					var vYear = parseInt(y, 10);
					var vMonth = parseInt(m, 10);		
					var vDay = parseInt(d, 10);
				}
				var week =arr[new Date(y,m-1,vDay).getDay()];
				return week;
			},
			CalculateMonthDays: function(m, y) {
				var mDay = 0;
				if (m == 0 || m == 1 || m == 3 || m == 5 || m == 7 || m == 8 || m == 10 || m == 12) {
					mDay = 31;
				} else {
					if (m == 2) {
						//判断是否为芮年
						var isRn = this.IsRuiYear(y);
						if (isRn == true) {
							mDay = 29;
						} else {
							mDay = 28;
						}
					} else {
						mDay = 30;
					}
				}
				return mDay;
			},
			CreateCalendar: function(y, m, d) {
				$dayItem = $("<div class=\"dayItem\"></div>");
				//获取当前月份的天数
				var nowDate = new Date();
				if(y==nowDate.getFullYear()&&m==nowDate.getMonth()+1||(y==0&&m==0))
				$(".currentDay").hide();
				var nowYear = y == 0 ? nowDate.getFullYear() : y;
				this.currentYear = nowYear;
				var nowMonth = m == 0 ? nowDate.getMonth() + 1 : m;
				this.currentMonth = nowMonth;
				var nowDay = d == 0 ? nowDate.getDate() : d;
				$(".selectYear").html(nowYear + "年");
				$(".selectMonth").html(nowMonth + "月");
				var nowDaysNub = this.CalculateMonthDays(nowMonth, nowYear);
				//获取当月第一天是星期几
				//var weekDate = new Date(nowYear+"-"+nowMonth+"-"+1);
				//alert(weekDate.getDay());
				var nowWeek = parseInt(this.CalculateWeek(nowYear, nowMonth, 1));
				//nowWeek=weekDate.getDay()==0?7:weekDate.getDay();
				//var nowWeek=weekDate.getDay();
				//获取上个月的天数
				var lastMonthDaysNub = this.CalculateMonthDays((nowMonth - 1), nowYear);

				if (nowWeek != 0) {
					//生成上月剩下的日期
					for (var i = (lastMonthDaysNub - (nowWeek - 1)); i < lastMonthDaysNub; i++) {
						$dayItem.append("<div class=\"item lastItem\"><a>" + (i + 1) + "</a></div>");
					}
				}

				//生成当月的日期
				for (var i = 0; i < nowDaysNub; i++) {
					if (i == (nowDay - 1)) $dayItem.append("<div class=\"item currentItem\"><a>" + (i + 1) + "</a></div>");
					else $dayItem.append("<div class=\"item\"><a>" + (i + 1) + "</a></div>");
				}

				//获取总共已经生成的天数
				var hasCreateDaysNub = nowWeek + nowDaysNub;
				//如果小于42，往下个月推算
				if (hasCreateDaysNub < 42) {
					for (var i = 0; i <= (42 - hasCreateDaysNub); i++) {
						$dayItem.append("<div class=\"item lastItem\"><a>" + (i + 1) + "</a></div>");
					}
				}

				return $dayItem;
			},
			CSS: function() {
				var itemPaddintTop = $(".dayItem").height() / 6;
				$(".item").css({
					"width": $(".week").width() / 7 + "px",
					"line-height": itemPaddintTop + "px",
					"height": itemPaddintTop + "px"
				});
				$(".currentItem>a").css("margin-left", ($(".item").width() - 25) / 2 + "px").css("margin-top", ($(".item").height() - 25) / 2 + "px");
			},
			CalculateNextMonthDays: function() {
				if (this.isRunning == false) {
					$(".currentDay").show();
					var m = this.currentMonth == 12 ? 1 : this.currentMonth + 1;
					var y = this.currentMonth == 12 ? (this.currentYear + 1) : this.currentYear;
					var d = 0;
					var nowDate = new Date();
					if (y == nowDate.getFullYear() && m == nowDate.getMonth() + 1) d = nowDate.getDate();
					else d = 1;
					$calendarItem = this.CreateCalendar(y, m, d);
					$("#Container").append($calendarItem);

					this.CSS();
					this.isRunning = true;
					$($("#Container").find(".dayItem")[0]).animate({
						height: "0px"
					}, 300, function() {
						$(this).remove();
						CalendarHandler.isRunning = false;
					});
				}
			},
			CalculateLastMonthDays: function() {
				if (this.isRunning == false) {
					$(".currentDay").show();
					var nowDate = new Date();					
					var m = this.currentMonth == 1 ? 12 : this.currentMonth - 1;
					var y = this.currentMonth == 1 ? (this.currentYear - 1) : this.currentYear;
					var d = 0;
					
					if (y == nowDate.getFullYear() && m == nowDate.getMonth() + 1) d = nowDate.getDate();
					else d = 1;
					$calendarItem = this.CreateCalendar(y, m, d);
					$("#Container").append($calendarItem);
					var itemPaddintTop = $(".dayItem").height() / 6;
					this.CSS();
					this.isRunning = true;
					$($("#Container").find(".dayItem")[0]).animate({
						height: "0px"
					}, 300, function() {
						$(this).remove();
						CalendarHandler.isRunning = false;
					});
				}
			},
			CreateCurrentCalendar: function() {
				if (this.isRunning == false) {
					$(".currentDay").hide();
					$calendarItem = this.CreateCalendar(0, 0, 0);
					$("#Container").append($calendarItem);
					this.isRunning = true;
					$($("#Container").find(".dayItem")[0]).animate({
						height: "0px"
					}, 300, function() {
						$(this).remove();
						CalendarHandler.isRunning = false;
					});
					this.CSS();
					$("#centerMain").animate({
						marginLeft: -$("#center").width() + "px"
					}, 500);
				}
			},
			RunningTime: function() {
				var mTiming = setInterval(function() {
					var nowDate = new Date();
					var h=nowDate.getHours()<10?"0"+nowDate.getHours():nowDate.getHours();
					var m=nowDate.getMinutes()<10?"0"+nowDate.getMinutes():nowDate.getMinutes();
					var s=nowDate.getSeconds()<10?"0"+nowDate.getSeconds():nowDate.getSeconds();
					var nowTime = h + ":" + m + ":" + s;
					$("#footNow").html(nowTime);
				}, 1000);

			}
		}
		</script>
        <!--日历JS结束-->
</head>
<body>
<!--大导航菜单-->
<div class="topmune">
   <!--标题位置-->
   <div class="logotitle"><span>柴尔德金融互助社区</span></div>
   <div id="menu_all">
   <div class="listmune">
     <ul id="jsddm">
       <li>
         <a id="menu11" href="__APP__/Public/main" target="main" onclick="javascript:menucontent(this.name,'1')">首页</a>
        </li>
       <li>
         <a id="menu22" onclick="javascript:menucontent(this.name,'2')">我的团队</a> 
       </li>
       <li>
         <a id="menu33"  onclick="javascript:menucontent(this.name,'3')">账户中心</a>         
       </li><li>
         <a id="menu44"  onclick="javascript:menucontent(this.name,'4')">互助社区</a>       
       </li>
       <li>
         <a id="menu55"  onclick="javascript:menucontent(this.name,'5')">邮件管理</a>       
       </li>
       <egt name="fck_rs['is_boss']" value='1'>
       <li>
         <a id="menu66"  onclick="javascript:menucontent(this.name,'6')">财务管理</a>        
       </li>
       <li>
         <a id="menu77"  onclick="javascript:menucontent(this.name,'7')">后台管理</a>        
       </li>
       </egt>
       <li>
         <a href="__APP__/Public/LogOut/"  onclick="if(confirm('确定安全退出吗?')) return true; else return false;" target="_top">安全退出</a>
       </li>
     </ul>
   </div>
   </div>
   
</div>
<!--内容部分-->
<div class="maincontent">
   <!--左边部分-->
  

   <!--右边部分-->
   <div class="rightmain">
   <div id="menutent">
   <ul class="hiddenul" id="menu1">
            <li class="hiddenli"><a href="__APP__/Public/main" target="main">默认桌面</a></li>
           	<li><a href="__APP__/Change/cody/c_id/2" target="main">修改密码</a></li>
            <li><a href="__APP__/News/News" target="main">最新公告</a></li>
           <!-- <li><a href="__APP__/Change/cody/c_id/3" target="main">个人信息</a></li>-->
            <li><a href="__APP__/Msg/outmsg/" target="main">发送邮件</a></li>
     	 </ul>
          <ul class="hiddenul" id="menu2" style="display:none;">
         <li><a href="__APP__/Reg/users" target="main">注册会员</a></li>
         <li><a href="__APP__/Change/re_member" target="main">直推会员</a></li>
         <li><a href="__APP__/Tree/cody/c_id/6" target="main">推荐图谱</a></li>
      </ul>
      <ul class="hiddenul" id="menu3" style="display:none;">
         <li><a href="__APP__/Change/cody/c_id/2" target="main">修改密码</a></li>
         <li><a href="__APP__/Change/cody/c_id/1" target="main">修改资料</a></li>
         <li><a href="__APP__/Change/cody/c_id/3" target="main">晋级管理</a></li>
<!--         <eq name="fck_rs['is_agent']" value="2">
          <li><a href="__APP__/Change/cody/c_id/5" target="main">申请激活码</a></li>
         <li><a href="__APP__/Change/cody/c_id/4" target="main">我的激活码</a></li>
         <li><a href="__APP__/Agent/cody/c_id/3" target="main">已开通会员</a></li>
         <li><a href="__APP__/Agent/cody/c_id/2" target="main">未开通会员</a></li>
         </eq>-->
         <li><a href="__APP__/Cash/wallet" target="main">钱包收益</a></li>

         <!--<li><a href="" target="main">银行账户</a></li>-->
         <li><a href="__APP__/Bonus/cody/c_id/1" target="main">奖金明细</a></li>
      </ul>
       <ul class="hiddenul" id="menu4" style="display:none;">
         <li><a href="__APP__/Cash/cody/c_id/10" target="main">提供援助</a></li>
         <li><a href="__APP__/Cash/cody/c_id/11" target="main">提供援助列表</a></li>
         <li><a href="__APP__/Cash/cody/c_id/8" target="main">需要援助</a></li>
         <li><a href="__APP__/Cash/cody/c_id/9" target="main">需要援助列表</a></li>
      </ul>
       <ul class="hiddenul" id="menu5" style="display:none;">
         <li><a href="__APP__/Msg/inmsg/" target="main">收件箱</a></li>
         <li><a href="__APP__/Msg/outmsg/" target="main">发邮件</a></li>
         <li><a href="__APP__/Msg/writemsg/" target="main">写邮件</a></li>
      </ul>
       
         <ul class="hiddenul" id="menu6" style="display:none;">
       <!-- <li><a href="__APP__/Bonus/cody/c_id/3" target="main">当期出纳</a></li>-->
            <li><a href="__APP__/Bonus/cody/c_id/4" target="main">奖金查询</a></li>
            <li><a href="__APP__/YouZi/cody/c_id/18" target="main">货币流向</a></li>
            <li><a href="__APP__/Recharge/cody/c_id/2" target="main">充值管理</a></li>
            <!--<li><a href="__APP__/Uplevel/cody/c_id/2" target="main">晋级管理</a></li>-->
            <!--<li><a href="__APP__/Gouwu/cody/c_id/1/" target="main">产品管理</a></li>--> 
        <!--<li><a href="__APP__/Gouwu/cody/c_id/1/" target="main">产品管理</a></li>
            <li><a href="__APP__/Gouwu/cody/c_id/2/" target="main">物流管理</a></li>
            <li><a href="__APP__/YouZi/cody/c_id/11" target="main">结算利息</a></li>--> 
            <li><a href="__APP__/Cash/cody/c_id/6" target="main">交易管理</a></li>
            <li><a href="__APP__/Cash/cody/c_id/7" target="main">手动匹配</a></li>
           
            <!--<li><a href="__APP__/YouZi/cody/c_id/30" target="main">分红查看</a></li>--> 
            <!-- <li><a href="__APP__/Phonecard/cody/c_id/1" target="main">充值卡管理</a></li> --> 
            <!-- <li><a href="__APP__/Phonecard/cody/c_id/3" target="main">注册卡管理</a></li> --> 
            <!-- <li><a href="__APP__/YouZi/cody/c_id/13" target="main">未回本会员</a></li> --> 
            <!-- <li><a href="__APP__/YouZi/cody/c_id/14" target="main">发放电子股分红</a></li> --> 
            
            <!--<li><a href="__APP__/Currency/cody/c_id/2" target="main">提现管理</a></li>
            <li><a href="__APP__/Plan/cody/c_id/1/" target="main">市场计划设置</a></li>>
                        -->
        </ul>
        <ul class="hiddenul" id="menu7" style="display:none;">
            <!--<li><a href="__APP__/YouZi/cody/c_id/1" target="main">账户审核</a></li>
            <li><a href="__APP__/Agent/cody/c_id/4" target="main">报单中心管理</a></li>-->
           <!-- <li><a href="__APP__/YouZi/activeCodeManager" target="main">激活码管理</a></li>
            <li><a href="__APP__/Change/adminCardShow" target="main">激活码订单</a></li> -->
            <li><a href="__APP__/YouZi/cody/c_id/2" target="main">会员管理</a></li>
            <!--<li><a href="__APP__/News/cody/c_id/1/" target="main">新闻公告管理</a></li>-->
            <li><a href="__APP__/YouZi/cody/c_id/7" target="main">数据库备份</a></li>
            <li><a href="__APP__/YouZi/cody/c_id/3" target="main">参数设置</a></li>
            <li><a href="__APP__/YouZi/cody/c_id/9" target="main">清空数据</a></li>
 
      </ul></div>
     <iframe src="__APP__/Public/main" onload="turnHeight('main');" id="main"  name="main" height="100%" width="110%" frameborder="0"></iframe>
   </div>
   <!--清除浮动-->
   <div style="clear:both; overflow:hidden;"></div>
</div>
</body>
</html>
